Flutter Widget Navigator pages

pages is the core property of the Navigator. I declare the routes (Pages) in the router. Click the link for more detail.

A List of Page classes. Signature:

final List<Page<dynamic>> pages;

To populate the history in Flutter, the core steps are:

  1. Create a list of Page objects.
  2. Convert these pages into Routes using Page.createRoute.
  3. Update this list as needed, and the routes are adjusted based on the changes in the page list.

本文作者:Maeiee

本文链接:Flutter Widget Navigator pages

版权声明:如无特别声明,本文即为原创文章,版权归 Maeiee 所有,未经允许不得转载!


喜欢我文章的朋友请随缘打赏,鼓励我创作更多更好的作品!